package httpserver

import (
	"fmt"
	"net/http"

	appcommon "go-http-server/common"
)

func Starter() error {
	appconfig := appcommon.Config
	return http.ListenAndServe(fmt.Sprintf("%s:%d", appconfig.ServerIp, appconfig.ServerPort), Router())
}
